package it.polimi.travelDream.web.beans;

    
import javax.faces.context.FacesContext;  
import javax.faces.application.FacesMessage;
  
public class ButtonBean {  
      
    public void goTo() {  
        //addMessage("Data saved");  
    }  
      
    public void addMessage(String summary) {  
        FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, summary,  null);  
        FacesContext.getCurrentInstance().addMessage(null, message);  
    }  
}  
                      